package com.litidea.dataobjects;

public class UserLoginDO {
	
	private Integer id;
	
	private String name;
	
	private String idCard;
	
	private String loginName;
	
	private String email;
	
	private String tel;
	
	private String mobile;
	
	private Integer gender;
	
	private String birthDay;
	
	private Integer deptId;
	
	private String deptName;
	
	private long lastOptionTime;
	
	private Integer loginId;
	
	private String professional;
	
	private final static long timeout = 10 * 60 * 60 * 1000;
	
	public boolean isExpired() {
		return (System.currentTimeMillis() - lastOptionTime) > timeout;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getIdCard() {
		return idCard;
	}

	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public Integer getGender() {
		return gender;
	}

	public void setGender(Integer gender) {
		this.gender = gender;
	}

	public String getBirthDay() {
		return birthDay;
	}

	public void setBirthDay(String birthDay) {
		this.birthDay = birthDay;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getDeptName() {
		return deptName;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public long getLastOptionTime() {
		return lastOptionTime;
	}

	public void setLastOptionTime(long lastOptionTime) {
		this.lastOptionTime = lastOptionTime;
	}

	public Integer getLoginId() {
		return loginId;
	}

	public void setLoginId(Integer loginId) {
		this.loginId = loginId;
	}

	public String getProfessional() {
		return professional;
	}

	public void setProfessional(String professional) {
		this.professional = professional;
	}

}
